-- these lines go after the user preferences lines just
-- before the 'pop card' line:
go to card 1 -- the Home Card of the Home Stack
initStuff
--
on initStuff -- an example using some of the Improvements
global timecheck
-- the following added to support control key and stack shortcuts
global controlList, stackList
global currCard, keyBtnFlag, keyBtnNum
put card field "controls" into controlList -- for 'controlKey'
put card field "destStacks" into stackList -- for 'finderList'
put the hilite of card button "TimeCheck" into timeCheck -- for
-- chime the time
put "nothing loaded" into currCard -- for 'KeyButton'
end initStuff
-- part contents for background part 5
----- text -----
7/1/88 3:30 PM
-- part contents for background part 4
----- text -----
In order for most "Home Improvements" to work, some global variables need to be declared and set to some initial value. This has to be done every time HyperCard is started or resumed. The "on getHomeInfo" handler in the Home Card stack script is a good place for this. Rather than change the handler every time a new "Improvement" is added, use another handler, called "initStuff" that is called by "getHomeInfo"